package test.factories;

import dominio.Node;
import dominio.Nodes;

import java.util.ArrayList;

/**
 * Created by CamonZ on 11/17/13.
 */
public class NodesListFactory {

    public static ArrayList<Nodes> Create(int amountOfNodesElements, int amountOfNodePerNodes){
        ArrayList<Nodes> result = new ArrayList<>(amountOfNodesElements);

        for(int i =0; i< amountOfNodesElements; i++){
            Nodes n = NodesFactory.Create(i, amountOfNodePerNodes, CostsListFactory.Create(amountOfNodesElements, i)); //creating the Nodes
            result.add(n);
        }

        return result;
    }

}
